<style>
    label.title{display:block;min-width:150px;float:left}
    p.roww{height:40px}
    p.roww input{width:200px}
    p.roww input.bt-ok{float:left!important;margin-left:150px;width:207px!important}
    table{width:100%;}
    table td,th{text-align:center;height:25px;font-size:14px}
    th{font-size:15px;}
</style>
<section class="row3 wrapper min720">
    <?php $this->load->view('com_tutors/views_steps_success.php'); ?>
    <article class="pading10">
        <?php if(!empty($mail)){
            echo '<table border="1">';
            echo '<tr><th>STT</th><th>Họ tên học sinh</th><th>Email học sinh</th><th>Ngày bắt đầu học</th><th>Môn học</th><th>Ghi chú</th></tr>';
            $i=1;
            foreach($mail as $mail){
                $hs=$this->common_model->getone('users',array('email'=>$mail->email_p,'type'=>0));
                if(!empty($hs)){
                    echo '<tr><td>',$i,'</td><td>',$hs->firstname,' ',$hs->name,'</td><td>',$mail->email_p,'</td><td>',date("H:i:s  \N\g\à\y  d-m-Y", strtotime($mail->date)),'</td><td>',$mail->subject,'</td><td>',$mail->note,'</td></tr>';
                }
                $i++;
            }
            
            echo '</table>';
        }?>
    </article>
</section>